<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<title>VenComPropWeb - Registrarse</title>


<%
   if (session.getAttribute("username") != null) {
%>
<jsp:forward page="index.jsp"/>
<%
   }
%>

<body BGCOLOR="#000000" TEXT="#F0F0F0" LINK="#FFFFFF" VLINK="#00ff00" ALINK="#ffff00">

<p align="left"><img src="./images/icono.JPG"  width="200" height="140" alt="icono.JPG" border="3"></p>
<big><a href="index.jsp" style="text-decoration:none">Inicio</a></big>

<div align="center">
  <form method ="post" action = "ServletRegistrarse">  
    <TABLE>
    <TR>
    <td colspan="2" valign="top" align="center" height="120"><h1>Registrarse</h1></TD>
    </TR>
    <tr>
    <td> <LABEL for="user">Usuario: </LABEL></TD>
    <TD><INPUT type="text" name="user" id="user"></TD>
    </TR>
    <TR>
    <TD width="34%"><LABEL for="contrasena">Password: </LABEL></TD>
    <TD><INPUT type="password" name="cont" id="cont"></TD>
    </TR>
    <TR>
    <TD><LABEL for="nombre">Nombre: </LABEL></TD>
    <TD><INPUT type="text" name="nombre" id="nombre"></TD>
    </TR>
    <TR>
    <TD><LABEL for="dni">DNI: </LABEL></TD>
    <TD><INPUT type="text" name="dni" id="dni"></TD>
    </TR>
    <TR>
    <td colspan="2" valign="middle" align="center" height="75"><INPUT type="submit" value= "Validar"></TD>
    </TR>
    </TABLE> 
    <br>
    
  </form>
</div> 
</body>
</html>